@import '../search/index.scss';
.category-container {
  flex: 1;
  overflow-y: auto;
  padding-top: 30rpx;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-input-container {
  padding: 0 30rpx;
  margin-bottom: 40rpx;
}
.search-recommend {
  width: 100%;
  background: #e7e7e7;
  padding: 30rpx;
  padding-top: 0rpx;
  box-sizing: border-box;
}
// 内容区域
.content-container {
  flex: 1;
  padding: 0;
  display: flex;
  // align-items: center;
  height: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  .content-left {
    width: 180rpx;
    height: 100%;
    overflow-y: auto;
    border-top: 1rpx solid #dcdcdc;
    border-right: 1rpx solid #dcdcdc;
    &-item {
      border-bottom: 1rpx solid #dcdcdc;
      background-color: #e7e7e7;
      height: 65rpx;
      text-align: center;
      position: relative;
      font-size: 24rpx;
      color: var(--main-color);
      line-height: 65rpx;
      overflow: hidden;
      &.active {
        color: var(--main-color);
        background-color: #dcdcdc;
      }
      .icon {
        position: absolute;
        right: 16rpx;
        top: 0;
        width: 20rpx;
        height: 20rpx;
      }
    }
    .open {
      height: auto;
    }
    .close {
      height: 0;
    }
  }
  .content-right {
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 0 18rpx 30rpx;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    &-item {
      width: 254rpx;
      height: 254rpx;
      margin-bottom: 18rpx;
      overflow: hidden;
      border-radius: 12rpx;
      position: relative;
      background: #c9a063;
      display: flex;
      align-items: center;
      justify-content: center;
      image {
        width: 100%;
        height: 100%;
      }
      &-title {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50rpx;
        background-color: rgba(0, 0, 0, 0.3);
        color: #fff;
        font-size: 24rpx;
        line-height: 50rpx;
        text-align: center;
      }
    }
  }
}
